const archivalStaus = [
    {label:'待发送',value:null,type:'warning'},
	{label:'待发送',value:0,type:'warning'},
    {label:'已发送',value:'1',type:'primary'},
    {label:'用户已拒收',value:'2',type:'danger'},
    {label:'用户已接收',value:'3',type:'success'},
]
const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{
			label: '编号',
			prop: 'number',
		},
		{
			label: '申请时间',
			prop: 'applyTime',
		},
		{
			label: '申请机构统一信用代码',
			prop: 'creditCode',
		},
		{
			label: '老人',
			prop: 'oldman',
		},
		{
			label: '身份证',
			prop: 'idCard',
		},
		{
			label: '联系电话',
			prop: 'phone',
		},
		{
			label: '档案状态',
			prop: 'filesStatus',
			type:"select",
            custome:'tag',
            dicData:archivalStaus
		},
		{
			label: '拒收原因',
			prop: 'rejectionReason',
		},
		{
			label: '上链交易id',
			prop: 'id',
		},
		{
			label: '操作',
			prop: 'menu',
			width: 300,
			fixed: 'right',
		},
	],
}
const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '申请时间',
			prop: 'applyTime',
			type:'dateTime',
            format:'YYYY年MM月DD hh:mm:ss',
            valueFormat:'YYYY-MM-DD hh:mm:ss',
			span: 8,
		},
		// {
		// 	label: '申请机构',
		// 	prop: 'creditCode',
		// 	propName:"organizationName",
		// 	type: 'remoteSelect',
		// 	api: 'view_dpServiceOrgBase_page',
		// 	filterKey: 'creditCode',
		// 	filterLabel: 'organizationName',
		// 	multiple: false,
		// 	changeField: true,
		// 	viewDisplay: false,
		// 	rules: [{ required: true, message: '请输入当前所在单位' }],
		// 	span: 8,
		// },
		{
			label: '申请机构统一信用代码',
			prop: 'creditCode',
			span: 8,
		},
		{
			label: '上链交易id',
			prop: 'chainId',
			type:'input',
			span: 8,
		},
		{
			label: '老人',
			prop: 'oldman',
			type:'input',
			span: 8,
		},
		// {
		// 	label: '调取机构',
		// 	prop: 'creditCode',
		// 	type:'input',
		// 	span: 8,
		// },
		{
			label: '身份证',
			prop: 'idCard',
			type:'input',
			span: 8,
		},
	],
}
export const baseConfig: any = {
	pageName: '用户档案申请',
	addLabel: '添加',
	dictcodes: [],
	rowKey: 'id',
	tipLabel: 'number',
	api: {
		index: 'view_bscApplicationFile_page',
		detail:'view_bscApplicationFile_id',
		edit: 'view_bscApplicationFile_edit',
		delete: 'view_bscApplicationFile_del',
	},
	auth: {
		index: 'view_bscApplicationFile_page',
		edit: 'view_bscApplicationFile_edit',
		detail:'view_bscApplicationFile_id',
		delete: 'view_bscApplicationFile_del',
	},

	menuBtn: [
		{
			icon: 'detail',
			label: '详情',
			type: 'primary',
			operate: 'Detial',
			auth: '',
			text: true,
			show: true,
		},
		
	],
	dialogConfig: {
		width: '65%',
	},
	searchConfig,
	tableConfig,
}
